YNQ  YNQ-1.5.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups

Macros

#define sySetRand()   srand((unsigned int)time(0))
 
#define syRand()   rand()
 

Functions

int syUnixMode2DosAttr (int mode)
 
NQ_UINT32 syGetLastSmbError (void)
 
void sySetLastNqError (NQ_STATUS nqErr)
 

Detailed Description

Macro Definition Documentation

#define sySetRand ( )    srand((unsigned int)time(0))

Take seed from the system time

#define syRand ( )    rand()

Next (pseudo)random value

Function Documentation

int syUnixMode2DosAttr ( int  mode)

Convert UNIX file permissions to DOS file attributes

Parameters
modeUNIX file permissions
Returns
Matching DOS file attributes
Note
  • DOS read only is represented in UNIX by removing everyone's write bit.
  • DOS archive is represented in UNIX by the user's execute bit.
  • DOS system is represented in UNIX by the group's execute bit.
  • DOS hidden is represented in UNIX by the other's execute bit.
  • DOS directory is represented in UNIX by UNIX 's directory bit.
NQ_UINT32 syGetLastSmbError ( void  )

Convert last system error to SMB error

Returns
SMB error
void sySetLastNqError ( NQ_STATUS  nqErr)

Convert NQ error into system error

Parameters
nqErrNQ error